var a = require("../../@babel/runtime/helpers/interopRequireDefault").default, e = require("../../config/Links"), r = (a(require("../../utils/Tips")), 
a(require("../../api/api_shareCard")), a(require("../../kta/index"))), n = require("../../utils/util"), l = getApp();

r.default.Page({
    onShareAppMessage: function(a) {
        var r = "";
        return l.globalData.aucMiniAuth.sid ? (r = {
            title: "【限时】领3个月会员，手慢无！",
            path: "/pages/shareCard_newUser/index?sid=" + l.globalData.aucMiniAuth.sid + "&channel=" + l.globalData.aucChannel + "&adtag=" + l.globalData.aucChannel,
            imageUrl: e.imageBaseUrl.shareCard + "index/shareTitle.png"
        }, l.kta.clickStat("9543f1bb737641e18cbf1d61216e2602")) : r = {
            title: "【限时福利】0元可领3个月会员！！！快抢！",
            path: "/pages/shareCard_index/index?a=" + l.globalData.aucMiniAuth.a + "&channel=" + l.globalData.aucChannel + "&adtag=" + l.globalData.aucChannel,
            imageUrl: e.imageBaseUrl.shareCard + "index/shareTitle2.png"
        }, console.log("分享信息", r), r;
    },
    data: {
        sid: "",
        imgs: [ e.imageBaseUrl.shareCard + "index_v3/qr_bg.png", e.imageBaseUrl.shareCard + "index_v2/banner.png", e.imageBaseUrl.shareCard + "index_v2/shareTitle.png", e.imageBaseUrl.shareCard + "btn_cancel.png", e.imageBaseUrl.shareCard + "btn_confirm.png", e.imageBaseUrl.shareCard + "btn_confirm_long_v2.png", e.imageBaseUrl.shareCard + "btn_confirm1_v2.png", e.imageBaseUrl.shareCard + "btn_invite_v2.png", e.imageBaseUrl.shareCard + "btn_overtime.png", e.imageBaseUrl.shareCard + "btn_receive_v2.png", e.imageBaseUrl.shareCard + "btn_received.png", e.imageBaseUrl.shareCard + "choose_lv.png", e.imageBaseUrl.shareCard + "choose_qq.png", e.imageBaseUrl.shareCard + "choose_tx.png", e.imageBaseUrl.shareCard + "nochoose_lv.png", e.imageBaseUrl.shareCard + "nochoose_qq.png", e.imageBaseUrl.shareCard + "nochoose_tx.png", e.imageBaseUrl.shareCard + "headimg_default.png", e.imageBaseUrl.shareCard + "logo_default.png", e.imageBaseUrl.shareCard + "logo_default_grey.png", e.imageBaseUrl.shareCard + "logo_lv.png", e.imageBaseUrl.shareCard + "logo_qq.png", e.imageBaseUrl.shareCard + "logo_right.png" ]
    },
    onLoad: function(a) {
        if (console.log("options", a), a.channel && (l.globalData.aucChannel = a.channel), 
        a.q) {
            var e = decodeURIComponent(a.q);
            console.log("option.q解码后", e), console.log("解密channel", (0, n.getQueryStringFromQrCode)(e, "channel")), 
            (0, n.getQueryStringFromQrCode)(e, "channel") && (l.globalData.aucChannel = (0, 
            n.getQueryStringFromQrCode)(e, "channel")), console.log("app.globalData.aucChannel=", l.globalData.aucChannel);
        }
    }
});